Optimal. Leaf size=136 \[ \frac{2 A \sin (c+d x) \sqrt{\cos (c+d x)} \sqrt{a \sec (c+d x)+a}}{3 d}+\frac{2 a A \sin (c+d x)}{3 d \sqrt{\cos (c+d x)} \sqrt{a \sec (c+d x)+a}}+\frac{2 \sqrt{a} C \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)} \sinh ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.399067, antiderivative size = 136, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 37, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.135, Rules used = {4265, 4087, 4015, 3801, 215} \[ \frac{2 A \sin (c+d x) \sqrt{\cos (c+d x)} \sqrt{a \sec (c+d x)+a}}{3 d}+\frac{2 a A \sin (c+d x)}{3 d \sqrt{\cos (c+d x)} \sqrt{a \sec (c+d x)+a}}+\frac{2 \sqrt{a} C \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)} \sinh ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4265
Rule 4087
Rule 4015
Rule 3801
Rule 215
Rubi steps
\begin{align*} \int \cos ^{\frac{3}{2}}(c+d x) \sqrt{a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx &=\left (\sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \frac{\sqrt{a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right )}{\sec ^{\frac{3}{2}}(c+d x)} \, dx\\ &=\frac{2 A \sqrt{\cos (c+d x)} \sqrt{a+a \sec (c+d x)} \sin (c+d x)}{3 d}+\frac{\left (2 \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \frac{\sqrt{a+a \sec (c+d x)} \left (\frac{a A}{2}+\frac{3}{2} a C \sec (c+d x)\right )}{\sqrt{\sec (c+d x)}} \, dx}{3 a}\\ &=\frac{2 a A \sin (c+d x)}{3 d \sqrt{\cos (c+d x)} \sqrt{a+a \sec (c+d x)}}+\frac{2 A \sqrt{\cos (c+d x)} \sqrt{a+a \sec (c+d x)} \sin (c+d x)}{3 d}+\left (C \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \sqrt{\sec (c+d x)} \sqrt{a+a \sec (c+d x)} \, dx\\ &=\frac{2 a A \sin (c+d x)}{3 d \sqrt{\cos (c+d x)} \sqrt{a+a \sec (c+d x)}}+\frac{2 A \sqrt{\cos (c+d x)} \sqrt{a+a \sec (c+d x)} \sin (c+d x)}{3 d}-\frac{\left (2 C \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1+\frac{x^2}{a}}} \, dx,x,-\frac{a \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{d}\\ &=\frac{2 \sqrt{a} C \sinh ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right ) \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}}{d}+\frac{2 a A \sin (c+d x)}{3 d \sqrt{\cos (c+d x)} \sqrt{a+a \sec (c+d x)}}+\frac{2 A \sqrt{\cos (c+d x)} \sqrt{a+a \sec (c+d x)} \sin (c+d x)}{3 d}\\ \end{align*}
Mathematica [A] time = 0.567713, size = 92, normalized size = 0.68 \[ \frac{\sqrt{\cos (c+d x)} \sec \left (\frac{1}{2} (c+d x)\right ) \sqrt{a (\sec (c+d x)+1)} \left (A \left (3 \sin \left (\frac{1}{2} (c+d x)\right )+\sin \left (\frac{3}{2} (c+d x)\right )\right )+3 \sqrt{2} C \tanh ^{-1}\left (\sqrt{2} \sin \left (\frac{1}{2} (c+d x)\right )\right )\right )}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.352, size = 199, normalized size = 1.5 \begin{align*} -{\frac{-1+\cos \left ( dx+c \right ) }{3\,d \left ( \sin \left ( dx+c \right ) \right ) ^{2}}\sqrt{{\frac{a \left ( \cos \left ( dx+c \right ) +1 \right ) }{\cos \left ( dx+c \right ) }}} \left ( 2\,A\cos \left ( dx+c \right ) \sin \left ( dx+c \right ) \sqrt{-2\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}}+4\,A\sin \left ( dx+c \right ) \sqrt{-2\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}}-3\,C\sqrt{2}\arctan \left ( 1/4\,\sqrt{2}\sqrt{-2\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}} \left ( \cos \left ( dx+c \right ) +1-\sin \left ( dx+c \right ) \right ) \right ) +3\,C\sqrt{2}\arctan \left ( 1/4\,\sqrt{2}\sqrt{-2\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}} \left ( \cos \left ( dx+c \right ) +1+\sin \left ( dx+c \right ) \right ) \right ) \right ) \sqrt{\cos \left ( dx+c \right ) }{\frac{1}{\sqrt{-2\, \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.08302, size = 479, normalized size = 3.52 \begin{align*} \frac{\sqrt{2}{\left (3 \, \cos \left (\frac{2}{3} \, \arctan \left (\sin \left (\frac{3}{2} \, d x + \frac{3}{2} \, c\right ), \cos \left (\frac{3}{2} \, d x + \frac{3}{2} \, c\right )\right )\right ) \sin \left (\frac{3}{2} \, d x + \frac{3}{2} \, c\right ) - 3 \, \cos \left (\frac{3}{2} \, d x + \frac{3}{2} \, c\right ) \sin \left (\frac{2}{3} \, \arctan \left (\sin \left (\frac{3}{2} \, d x + \frac{3}{2} \, c\right ), \cos \left (\frac{3}{2} \, d x + \frac{3}{2} \, c\right )\right )\right ) + 2 \, \sin \left (\frac{3}{2} \, d x + \frac{3}{2} \, c\right ) + 3 \, \sin \left (\frac{1}{3} \, \arctan \left (\sin \left (\frac{3}{2} \, d x + \frac{3}{2} \, c\right ), \cos \left (\frac{3}{2} \, d x + \frac{3}{2} \, c\right )\right )\right )\right )} A \sqrt{a} + 3 \, C \sqrt{a}{\left (\log \left (2 \, \cos \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 2 \, \sqrt{2} \cos \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 2 \, \sqrt{2} \sin \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 2\right ) - \log \left (2 \, \cos \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 2 \, \sqrt{2} \cos \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 2 \, \sqrt{2} \sin \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 2\right ) + \log \left (2 \, \cos \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 2 \, \sqrt{2} \cos \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 2 \, \sqrt{2} \sin \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 2\right ) - \log \left (2 \, \cos \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 2 \, \sqrt{2} \cos \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 2 \, \sqrt{2} \sin \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 2\right )\right )}}{6 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.567729, size = 867, normalized size = 6.38 \begin{align*} \left [\frac{4 \,{\left (A \cos \left (d x + c\right ) + 2 \, A\right )} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right ) + 3 \,{\left (C \cos \left (d x + c\right ) + C\right )} \sqrt{a} \log \left (\frac{a \cos \left (d x + c\right )^{3} - 4 \, \sqrt{a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}}{\left (\cos \left (d x + c\right ) - 2\right )} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 7 \, a \cos \left (d x + c\right )^{2} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right )}{6 \,{\left (d \cos \left (d x + c\right ) + d\right )}}, \frac{2 \,{\left (A \cos \left (d x + c\right ) + 2 \, A\right )} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right ) + 3 \,{\left (C \cos \left (d x + c\right ) + C\right )} \sqrt{-a} \arctan \left (\frac{2 \, \sqrt{-a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right )}{3 \,{\left (d \cos \left (d x + c\right ) + d\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (C \sec \left (d x + c\right )^{2} + A\right )} \sqrt{a \sec \left (d x + c\right ) + a} \cos \left (d x + c\right )^{\frac{3}{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]